﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace XXVIII.DAL.Factory
{

    /// <summary>
    /// 数据库 工厂
    /// </summary>
    public sealed class DALFactory
    {
        public static readonly string PATH = ConfigurationManager.AppSettings["DAL.Factory"];
        public static DAL.IDAL.IFormDAL CreateFormDAL()
        {
            string className = PATH + ".FormDAL";
            return (DAL.IDAL.IFormDAL)Assembly.Load(PATH).CreateInstance(className);
        }
    }
}
